<template>
 

    <div @click.stop="$parent.$parent.onEditer(index)">
      <div class="drag optional" :class="{selected: index === selectedIndex}">
        <div class="diy-richText" :style="{background: item.style.background, padding: item.style.paddingTop + 'px ' + item.style.paddingLeft + 'px'}"
          v-html="item.params.content">
        </div>
      </div>
    </div>

</template>

<script>
export default {
	data() {
		return {

		};
	},
	props: ['item', 'index', 'selectedIndex'],
	methods: {

	}
};
</script>

<style lang="scss" scoped>
.diy-richText video{ width: 100%;}
</style>
